const express=require('express')
const app=express()
const userRouter=require('./user/user')
app.use(express.static('./myitem'))
app.listen(7000)
app.use(express.urlencoded({
	extended: false
}))
app.use('/v1/log',userRouter)
app.use((err,req,res,next)=>{
	console.log(err)
	res.send({code:500,msg:'服务器端错误'})
})